package com.nbufe.combination.demo2;

/**
 * @Author Zan
 * @Create 2024/5/6 8:34
 * @ClassName: Speciality
 * @Description : 专业类
 */
public class Speciality extends Component {

    public Speciality(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    @Override
    public void display() {
        System.out.println("\t" + this.name + " : " + this.desc);
    }
}
